package com.xyht.medicine_management_system.modules.kuaidi.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商家发货快递信息
 * </p>
 *
 * @author XYHT
 * @since 2024-07-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mms_kuaidi_info")
@ApiModel(value = "MmsKuaidiInfo对象", description = "商家发货快递信息")
public class MmsKuaidiInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "收件人姓名")
    private String recName;

    @ApiModelProperty(value = "收件人手机号")
    private String recTel;

    @ApiModelProperty(value = "收件人地址")
    private String recAddr;

    @ApiModelProperty(value = "寄件人姓名")
    private String sendName;

    @ApiModelProperty(value = "寄件人手机号")
    private String sendTel;

    @ApiModelProperty(value = "寄件人地址")
    private String sendAddr;

    @ApiModelProperty(value = "发货重量")
    private String sendWeight;

    @ApiModelProperty(value = "快递公司")
    private String kuaidiCompany;

    @ApiModelProperty(value = "快递单号")
    private String kuaidiNum;

    private String orderId;

    @ApiModelProperty(value = "商家备注")
    private String remark;

    @ApiModelProperty(value = "打印任务id")
    private String printTaskId;

    @ApiModelProperty(value = "打印面单资源")
    private String printImg;

    @ApiModelProperty(value = "快递轨迹")
    private String kuaidiTrack;

    @ApiModelProperty(value = "轨迹查询时间")
    private Date kuaidiTrackQueryTime;

    @ApiModelProperty(value = "物品名称")
    private String kuaidiGoodsName;

    @ApiModelProperty(value = "快递任务id")
    private String kuaidiTaskId;

    @ApiModelProperty(value = "快递订单id")
    private String kuaidiOrderId;

    @ApiModelProperty(value = "快递订单状态 0：'下单成功'； 1：'已接单'； 2：'收件中'； 9：'用户主动取消'；10：'已取件'； " +
            "11：'揽货失败'；12：'已退回'； 13：'已签收'； 14：'异常签收'；15：'已结算' ；99：'订单已取消'；" +
            "101：'运输中'；200：'已出单'；201：'出单失败'；610：'下单失败'；155：'修改重量'；" +
            "166：订单复活（订单被取消，但是实际包裹已经发出，正常计费）；400：派送中")
    private Integer kuaidiStatus;

    @ApiModelProperty(value = "快递取消订单备注")
    private String kuaidiCancelMsg;

    @ApiModelProperty(value = "版本号")
    @Version
    private Integer version;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "是否删除：0：未删除 1：已删除")
    @TableLogic
    private Integer isDeleted;


}
